import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'
import Login from '../views/Login.vue'

const routes = [
  {
    path: '/',
    redirect: 'login'
  },
  {
	  path: '/login',
	  component: Login
  },
  {
	  path: '/:catchAll(.*)/',
	  name: '/404',
	  component: () => import('../views/404.vue')
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
